package com.example.wangshuo.zyfypt_205ws.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.example.wangshuo.zyfypt_205ws.R;
import com.example.wangshuo.zyfypt_205ws.activity.MainActivity;
import com.example.wangshuo.zyfypt_205ws.bean.LoginBean;
import com.example.wangshuo.zyfypt_205ws.bean.SessionidBean;
import com.example.wangshuo.zyfypt_205ws.iface.LoginListener;
import com.example.wangshuo.zyfypt_205ws.iface.RegisterListener;


/**
 * Created by Neusoft on 2017/4/9.
 */

public class Mine extends Fragment {
    private View view;
    private TextView textView1,textView2, textView3,textView4;
    private Context context;
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        context=getActivity();
        view=inflater.inflate(R.layout.mine,container,false);
        textView1=(TextView)view.findViewById(R.id.textView6);
        textView1.setText("ID：" + SessionidBean.id);
        textView2=(TextView)view.findViewById(R.id.textView7);
        textView2.setText("用户名：" + SessionidBean.userName);
        textView3=(TextView)view.findViewById(R.id.textView8);
        textView3.setText("真实姓名：" + SessionidBean.realName);
        textView4=(TextView)view.findViewById(R.id.textView9);
        textView4.setText("性别：" + SessionidBean.sex);
        return view;
    }


}

